<!DOCTYPE html>
<html data-layout-decorate="~{fragment/layout}">
<head>
<meta charset="UTF-8">
<title>个人信息</title>
<style type="text/css">
	form .input-group{
		margin-bottom: 20px;
	}
</style>
</head>
<body>
<section layout:fragment="content">
	<div sec:authorize="hasRole('ROLE_STUDENT')" style="margin: 100px auto; width: 90%;">
		<form class="form-horizontal" >
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">用户名：</span>
				<input type="text" class="form-control" th:value="${model.username}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">姓名：</span>
				<input type="text" class="form-control" th:value="${model.name}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">性别：</span>
				<input type="text" class="form-control" th:value="${model.sex}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">年龄：</span>
				<input type="text" class="form-control" th:value="${model.age}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">电话：</span>
				<input type="text" class="form-control" th:value="${model.phone}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">邮箱：</span>
				<input type="text" class="form-control" th:value="${model.email}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">地址：</span>
				<input type="text" class="form-control" th:value="${model.addrs}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">职务：</span>
				<input type="text" class="form-control" th:value="${model.job}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">班级：</span>
				<input type="text" class="form-control" th:value="${model.tbclass}">
			</div>
		</form>
	</div>
	
	<div sec:authorize="!hasRole('ROLE_STUDENT')" style="margin: 100px auto; width: 90%;">
		<form class="form-horizontal" >
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">用户名：</span>
				<input type="text" class="form-control" th:value="${model.username}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">姓名：</span>
				<input type="text" class="form-control" th:value="${model.name}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">电话：</span>
				<input type="text" class="form-control" th:value="${model.phone}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">邮箱：</span>
				<input type="text" class="form-control" th:value="${model.email}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">地址：</span>
				<input type="text" class="form-control" th:value="${model.addrs}">
			</div>
			<div class="input-group col-md-4 col-md-offset-4">
				<span class="input-group-addon">职位：</span>
				<input type="text" class="form-control" th:value="${model.job}">
			</div>
		</form>
	</div>
</section>
</body>
</html>